function RespondToFriendRequest(iProfile,iTrader,response)
{
	var http = new XMLHttpRequest();
	var url = "FriendRequestsResponse.php";
				
	var params = "iProfile="+iProfile+"&iTrader=" + iTrader + "&response=" + response;
	http.open("POST", url, true);

	//Send the proper header information along with the request
	http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	http.setRequestHeader("Content-length", params.length);
	http.setRequestHeader("Connection", "close");

	http.onreadystatechange = function() 
	{//Call a function when the state changes.
		if(http.readyState == 4 && http.status == 200) 
		{
			var friendsDiv=document.getElementById("friendsDiv");
			friendsDiv.innerHTML=http.responseText;
		}
	}
	http.send(params);
}